#include "N1Network.h"
#include "N1Debug.h"

// Host to network byte order
uint16 N1H2N16(uint16 n)
{
    return htons(n);
}

uint32 N1H2N32(uint32 n)
{
    return htonl(n);
}

uint64 N1H2N64(uint64 n)
{
    N1NonImplemented
    return 0;
}

// Network to host byte order
uint16 N1N2H16(uint16 n)
{
    return ntohs(n);
}

uint32 N1N2H32(uint32 n)
{
    return ntohl(n);
}

uint64 N1N2H64(uint64 n)
{
    N1NonImplemented
    return 0;
}
